package com.hnichr.ump.common.assessment.entity;

import com.hnichr.ump.common.entity.UmpEntity;
import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "t_assessment_answer")
@Schema(description = "答案表")
public class Answer extends UmpEntity {

    @Id
    @Generator
    @Column(name = "ID_", updatable = false)
    @Schema(description = "ID")
    private String id;

    @Column(name = "TENANT_ID_")
    @Schema(description = "租户")
    @Dict(dicCode = "BEISEN_ACTIVITY_TENANT")
    private String tenantId;

    @Column(name = "INVITE_ID_")
    @Schema(description = "受测邀请ID")
    private String inviteId ;

    @Column(name = "TESTEE_ID_")
    @Schema(description = "受测者ID")
    private String testeeId ;

    @Column(name = "PAPER_ID_")
    @Schema(description = "试卷ID")
    private String paperId ;

    @Column(name = "QUESTION_ID_")
    @Schema(description = "题目ID")
    private String questionId ;

    @Column(name = "QUESTION_TYPE_")
    @Schema(description = "题目类型  1-单选   2-多选   3-问答")
    private String questionType;

    @Column(name = "ANSWERD_OPTION_ID_")
    @Schema(description = "选择题回答选项ID")
    private String answerdOptionId ;

    @Column(name = "ANSWERD_TEXT_ID_")
    @Schema(description = "问答题回答textID")
    private String answerdTextId ;

    @Column(name = "QUESTION_ORDER_NUM_")
    @Schema(description = "问题排序")
    private Integer questionOrderNum;

    @Column(name = "OPTION_ORDER_NUM_")
    @Schema(description = "选项排序")
    private Integer optionOrderNum;
}
